package com.paic.mhis.hcpms.monitor.intergration.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.core.user.dto.AreaInfoDTO;
import com.paic.mhis.hcpms.monitor.dto.MonitorIntegrityMapDTO;
import com.paic.mhis.hcpms.monitor.intergration.dao.MonitorIntegrityDAO;
import com.paic.pafa.biz.dao.BaseDAO;

/**
 * 
 * @author EX-XIEQI001
 *
 */
@Component("monitorIntegrityDAO")
public class MonitorIntegrityDaoImpl extends BaseDAO implements MonitorIntegrityDAO {

	@Override
	public int queryCountNum(Map<String, Object> map) {
		return this._getInt("monitorIntegrity.countNum", map);
	}

	@Override
	public int queryMonthCountNum(Map<String, Object> map) {
		return this._getInt("monitorIntegrity.monthCountNum", map);
	}

	@Override
	public int queryOrgLevelCount(Map<String, Object> map) {
		return this._getInt("monitorIntegrity.orgLevelCount", map);
	}

	@Override
	public List<Map<String, Object>> queryInsuranceScore() {
		return (List<Map<String, Object>>)this._list("monitorIntegrity.queryInsuranceScore", null);
	}

	@Override
	public List<Map<String, Object>> queryPatientCount() {
		return (List<Map<String, Object>>)this._list("monitorIntegrity.queryPatientCount", null);
	}

	@Override
	public List<AreaInfoDTO> queryAreaAll(String userId) {
		return (List<AreaInfoDTO>)this._list("monitorIntegrity.queryAreaAll", userId);
	}

	@Override
	public List<MonitorIntegrityMapDTO> queryAreaOrgLevelCount(Map<String,Object> map) {
		return (List<MonitorIntegrityMapDTO>) this._list("monitorIntegrity.queryAreaOrgLevelCount", map) ;
	}

}
